﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ucCustomerSummaryInfo.ascx.cs" Inherits="Customer_ucCustomerSummaryInfo" %>
<%--
    TODO: Add validations here
--%>
<table id="tableContent" style="width:99%;">
<tr style="height:1px; line-height:1px;" title="template">
    <td style="width:140px;">&nbsp;</td>
    <td style="width:200px;">&nbsp;</td>
    <td style="width:140px;">&nbsp;</td>
    <td style="width:auto;">&nbsp;</td>
    </tr>
<tr>
    <td class="td_title">客户名<span style="color:#ff0000;">* </span></td>
    <td>
        <asp:TextBox ID="txtName" runat="server" CssClass="conint singleline"></asp:TextBox>
        <asp:RequiredFieldValidator ID="v1" 
                runat="server" ErrorMessage="必填" ControlToValidate="txtName" 
                Display="Dynamic" EnableViewState="False" SetFocusOnError="True" 
                ValidationGroup="submit"></asp:RequiredFieldValidator></td>
    <td class="td_title">英文名</td>
    <td>
        <asp:TextBox ID="txtName_En" runat="server" CssClass="conint singleline"></asp:TextBox></td>
    </tr>
    <tr>
    <td class="td_title">客户代码<span style="color:#ff0000;">* </span></td>
    <td>
        <asp:TextBox ID="txtCustomerCode" runat="server" CssClass="conint singleline"></asp:TextBox>
        <asp:RequiredFieldValidator ID="v2" 
                runat="server" ErrorMessage="必填" ControlToValidate="txtCustomerCode" 
                Display="Dynamic" EnableViewState="False" SetFocusOnError="True" 
                ValidationGroup="submit"></asp:RequiredFieldValidator>
        </td>
    <td class="td_title">客户类别</td>
    <td>
        <asp:DropDownList ID="drpCustomerType" runat="server">
            <asp:ListItem Text="企事业法人" Value="0"></asp:ListItem>
            <asp:ListItem Text="个人" Value="1"></asp:ListItem>
        </asp:DropDownList>
        </td>
    </tr>
    <tr>
    <td class="td_title">国家</td>
    <td>
        <asp:DropDownList ID="drpCountry" runat="server" 
            DataSourceID="SqlDataSource1" DataTextField="dName" DataValueField="dID" 
            ondatabound="drpCountry_DataBound">
        </asp:DropDownList>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
            SelectCommand="SELECT RTRIM([dID]) AS dID, RTRIM([dName]) AS dName FROM [TD_Country] ORDER BY [dName] ASC">
        </asp:SqlDataSource>
    </td>
    <td class="td_title">所在城市</td>
    <td>
        <asp:DropDownList ID="drpProvince" runat="server"
            DataTextField="dName" DataValueField="dID" 
            ondatabound="drpProvince_DataBound" AutoCallBack="True" 
            AutoPostBack="True" onselectedindexchanged="drpProvince_SelectedIndexChanged">
        </asp:DropDownList>
        <asp:DropDownList ID="drpCity" runat="server">
        </asp:DropDownList>
        </td>
    </tr>
<tr>
    <td class="td_title">邮编<span style="color:#ff0000;">* </span></td>
    <td>
        <asp:TextBox ID="txtZipCode" runat="server" CssClass="conint singleline"></asp:TextBox>
        <asp:RequiredFieldValidator ID="v3" 
                runat="server" ErrorMessage="必填" ControlToValidate="txtZipCode" 
                Display="Dynamic" EnableViewState="False" SetFocusOnError="True" 
                ValidationGroup="submit"></asp:RequiredFieldValidator>
    </td>
    <td class="td_title">客户详细地址<span style="color:#ff0000;">* </span></td>
    <td>
        <asp:TextBox ID="txtAddress" runat="server" CssClass="conint" Width="260px"></asp:TextBox>
        <asp:RequiredFieldValidator ID="v4" 
                runat="server" ErrorMessage="必填" ControlToValidate="txtAddress" 
                Display="Dynamic" EnableViewState="False" SetFocusOnError="True" 
                ValidationGroup="submit"></asp:RequiredFieldValidator>
    </td>
    </tr>
<tr>
    <td class="td_title">主页</td>
    <td colspan="2">
        <asp:TextBox ID="txtHomepage" runat="server" CssClass="conint"></asp:TextBox>
    </td>
    <td></td>
    </tr>
<tr>
    <td class="td_title">法人代表</td>
    <td>
        <asp:TextBox ID="txtRepresenter" runat="server" CssClass="conint singleline"></asp:TextBox></td>
    <td class="td_title">法人代表职务</td>
    <td>
        <asp:TextBox ID="txtRepresenterPosition" runat="server" CssClass="conint singleline"></asp:TextBox></td>
    </tr>
<tr>
    <td class="td_title">客户特殊要求</td>
    <td colspan="3">
        <asp:TextBox ID="txtSpecialNeeds" runat="server" CssClass="textarea01" 
            TextMode="MultiLine"></asp:TextBox></td>
    </tr>
<tr>
    <td class="td_title">备注</td>
    <td colspan="3">
        <asp:TextBox ID="txtNote" runat="server" CssClass="textarea01" 
            TextMode="MultiLine"></asp:TextBox></td>
    </tr>
</table>

